<template>
	<view class="yaoqing">
		<seeimg ref="mychild" />
		<image class="bg" src="/static/images/tuiguang_02.jpg" mode=""></image>
		<view class="content">
			<view class="pic">
				<image class="c_img" :src="src" @click="showcode" mode=""></image>
			</view>
		</view>
	</view>
</template>

<script>
	import seeimg from '@/components/xw-seeimg/index'
	export default{
		components:{
			seeimg,
		},
		data(){
			return{
				userinfo:'',
				src:'https://smyl.qingkangqingyang.com/storage/upload/qcode/code.jpg'
			}
		},
		onLoad() {
			uni.setNavigationBarTitle({
			    title: '联系客服'
			});
			this.userinfo=uni.getStorageSync('user');
		},
		methods:{
			showcode(){
				this.$refs.mychild.onImg(this.src);
			}
		}
	}
</script>

<style scoped lang="scss">
	.yaoqing{
		width: 100%;
		.bg{
			position: fixed;
			left: 0;
			top: 0;
			width: 100%;
			height: 100%;
		}
		.content{
			text-align: center;
			position: absolute;
			left: 50%;
			transform: translateX(-50%);
			top: 400rpx;
			font-size: 30rpx;
			color: #FFFFFF;
			.pic{
				background-color: #FFFFFF;
				width: 350rpx;
				height: 350rpx;
				display: flex;
				justify-content: center;
				align-items: center;
				.c_img{
					width: 350rpx;
					height: 480rpx;
				}
			}
		}
	}
</style>
